package com.itheima;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 刘全
 * @date 2021/9/11
 */
public class app {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        BookDao bookDao = (BookDao) ac.getBean("bookDao");
        BookService bookService = (BookService) ac.getBean("bookService");

        bookDao.save();
        //bookService.save();
    }
}
